package com.sjy.project.fym.accessToken.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sjy.framework.aspectj.lang.annotation.Excel;
import com.sjy.framework.web.domain.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 小程序密令 2小时有效期，默认一个小时更新一次对象 fy_access_token
 * 
 * @author ljb
 * @date 2022-04-20
 */
@ApiModel(value="FyAccessToken对象", description="小程序密令 2小时有效期，默认一个小时更新一次")
public class FyAccessToken extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @ApiModelProperty(value = "ID")
    private Long id;

    /** 小程序令牌 */
    @Excel(name = "小程序令牌")
    @ApiModelProperty(value = "小程序令牌")
    private String accessToken;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setAccessToken(String accessToken)
    {
        this.accessToken = accessToken;
    }

    public String getAccessToken()
    {
        return accessToken;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("accessToken", getAccessToken())
            .append("createTime", getCreateTime())
            .toString();
    }
}
